package behavior.Observer;

/**
 * Created by LYJ on 2016/10/21.
 */
public class ConcreteObserver2 implements Observer2{
    private String observerState;

    @Override
    public void update(Subject2 subject)
    {
        observerState = ((ConcreteSubject2)subject).getState();
        System.out.println("状态为: "+observerState);
    }

}
